package awt;

import java.awt.*;

/**
 * @description: 窗口
 * @author: Tom
 * @create: 2019-07-22 11:27
 **/
public class FirstFrame  extends Frame {
    public static void main(String[] args) {
        FirstFrame firstFrame = new FirstFrame("First contianer");
        firstFrame.setSize(240,240);
        firstFrame.setBackground(Color.yellow);
        firstFrame.setVisible(true);
    }

    public FirstFrame(String str) throws HeadlessException {
        super(str);
    }
}
